package ModelLag;
import java.util.ArrayList;

/**
 *
 * @author DM75 Gruppe 3.
 * @version 22-12-2011.
 */
public class Customer {
    private String phoneNo;
    private String fName;
    private String lName;
    private String address;
    private String zipCode;
    private String email;
    private String city; 
    
    private ArrayList<OrderArr> orders;//benyttes ikke endnu

    public Customer(String phoneNo, String fName, String lName, String address, String zipCode, String email) {
        this.phoneNo = phoneNo;
        this.fName = fName;
        this.lName = lName;
        this.address = address;
        this.zipCode = zipCode;
        this.email = email;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public Customer() {
    }
    
    
    
    public ArrayList<OrderArr> getOrders(){
        return orders;
    }
    public void addOrder(OrderArr order){
        orders.add(order);
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getfName() {
        return fName;
    }

    public void setfName(String fName) {
        this.fName = fName;
    }

    public String getlName() {
        return lName;
    }

    public void setlName(String lName) {
        this.lName = lName;
    }

    public String getPhoneNo() {
        return phoneNo;
    }

    public void setPhoneNo(String phoneNo) {
        this.phoneNo = phoneNo;
    }

    public String getZipCode() {
        return zipCode;
    }

    public void setZipCode(String zipCode) {
        this.zipCode = zipCode;
    }

    /**
     * @param orders the orders to set
     */
    public void setOrders(ArrayList<OrderArr> orders) {
        this.orders = orders;
    }    
    public String toString()
    {
        return fName + " " + lName;
    }
}
